package com.ruoyi.mall.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品品牌对象 pms_brand
 *
 * @author zyy
 * @date 2023-09-09
 */
public class PmsBrand extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 记录id
     */
    private Long id;

    /**
     * 品牌名称
     */
    @Excel(name = "品牌名称")
    private String name;

    /**
     * 品牌名称的拼音
     */
    @Excel(name = "品牌名称的拼音")
    private String pinyin;

    /**
     * 品牌logo的URL
     */
    @Excel(name = "品牌logo的URL")
    private String logo;

    /**
     * 品牌简介
     */
    @Excel(name = "品牌简介")
    private String description;

    /**
     * 关键词列表，各关键词使用英文的逗号分隔
     */
    @Excel(name = "关键词列表，各关键词使用英文的逗号分隔")
    private String keywords;

    /**
     * 自定义排序序号
     */
    @Excel(name = "自定义排序序号")
    private Integer sort;

    /**
     * 销量（冗余）
     */
    @Excel(name = "销量", readConverterExp = "冗=余")
    private Integer sales;

    /**
     * 商品种类数量总和（冗余）
     */
    @Excel(name = "商品种类数量总和", readConverterExp = "冗=余")
    private Integer productCount;

    /**
     * 买家评论数量总和（冗余）
     */
    @Excel(name = "买家评论数量总和", readConverterExp = "冗=余")
    private Integer commentCount;

    /**
     * 买家好评数量总和（冗余）
     */
    @Excel(name = "买家好评数量总和", readConverterExp = "冗=余")
    private Integer positiveCommentCount;

    /**
     * 是否启用，1=启用，0=未启用
     */
    @Excel(name = "是否启用，1=启用，0=未启用")
    private Integer enable;

    /**
     * 数据创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "数据创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtCreate;

    /**
     * 数据最后修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "数据最后修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtModified;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setPinyin(String pinyin) {
        this.pinyin = pinyin;
    }

    public String getPinyin() {
        return pinyin;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getLogo() {
        return logo;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSales(Integer sales) {
        this.sales = sales;
    }

    public Integer getSales() {
        return sales;
    }

    public void setProductCount(Integer productCount) {
        this.productCount = productCount;
    }

    public Integer getProductCount() {
        return productCount;
    }

    public void setCommentCount(Integer commentCount) {
        this.commentCount = commentCount;
    }

    public Integer getCommentCount() {
        return commentCount;
    }

    public void setPositiveCommentCount(Integer positiveCommentCount) {
        this.positiveCommentCount = positiveCommentCount;
    }

    public Integer getPositiveCommentCount() {
        return positiveCommentCount;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("pinyin", getPinyin())
                .append("logo", getLogo())
                .append("description", getDescription())
                .append("keywords", getKeywords())
                .append("sort", getSort())
                .append("sales", getSales())
                .append("productCount", getProductCount())
                .append("commentCount", getCommentCount())
                .append("positiveCommentCount", getPositiveCommentCount())
                .append("enable", getEnable())
                .append("gmtCreate", getGmtCreate())
                .append("gmtModified", getGmtModified())
                .toString();
    }
}
